/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="TIPOGUIA")
public class TipoGuiaProteu implements Serializable{

    @Id
    @Column(name="TIG_ST_CODIGO")
    private String tigStCodigo;
    @Column(name="TIG_ST_DESCRICAO")
    private String tigStDescricao;

    public String getTigStCodigo() {
        return tigStCodigo;
    }

    public void setTigStCodigo(String tigStCodigo) {
        this.tigStCodigo = tigStCodigo;
    }

    public String getTigStDescricao() {
        return tigStDescricao;
    }

    public void setTigStDescricao(String tigStDescricao) {
        this.tigStDescricao = tigStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TipoGuiaProteu other = (TipoGuiaProteu) obj;
        if ((this.tigStCodigo == null) ? (other.tigStCodigo != null) : !this.tigStCodigo.equals(other.tigStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 47 * hash + (this.tigStCodigo != null ? this.tigStCodigo.hashCode() : 0);
        return hash;
    }



}
